﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        private int id;
        private string name;
        private string sex;
        private int cardid;
        private int tel;

        public Program(int id, string name, string sex, int cardid, int tel)
        {
            this.id = id;
            this.name = name;
            this.sex = sex;
            this.cardid = cardid;
            this.tel = tel;
        }

        static void Main(string[] args)
        {
            Student stu = new Student(123,"三剑客","男",123456,123456,"密码","模块");
            
                Console.WriteLine(stu.Id);
                Console.WriteLine(stu.Name);
                Console.WriteLine(stu.Sex);
                Console.WriteLine(stu.Cardid);
                Console.WriteLine(stu.Tel);
                Console.WriteLine(stu.Major);
                Console.WriteLine(stu.Grade);
            stu.Asd();

                Teacher tea = new Teacher(123, "三客", "男", 654321, 123456, "密", "模块");
                Console.WriteLine(tea.Id);
                Console.WriteLine(tea.Name);
                Console.WriteLine(tea.Sex);
                Console.WriteLine(tea.Cardid);
                Console.WriteLine(tea.Tel);
                Console.WriteLine(tea.Title);
                Console.WriteLine(tea.Wageno);
            tea.Zxc();
        }
    }
}
